package valeria;

import java.util.Scanner;

public class J10Retangle {
	public static void main(String[]args){
		double width,height;
		String color;
		double getArea,getPerimeter;
	
		Scanner sc = new Scanner(System.in);
		System.out.println("가로는?");
		width=sc.nextInt();
		System.out.println("세로는?");
		height=sc.nextInt();
		System.out.println("색상은?");
		color=sc.next();
		
		sc.close();
		
		getArea=getArea(width,height);
		getPerimeter=getPerimeter(width,height);
		
		
		System.out.println(width);
		System.out.println(height);
		System.out.println(color);
		System.out.println(getArea);
		System.out.println(getPerimeter);
		
		
		
		
	}

	private static double  getArea(double width,double height) {
		return width * height;
		
	}

	private static double getPerimeter(double width,double height) {
		return (width + height) * 2;
		
	}

}
